﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/QLDAOL.Master" ValidateRequest="false" AutoEventWireup="false" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
 <%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
   <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Inbox
</asp:Content>

   
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/project.css" rel="stylesheet" type="text/css" />
<link href="../../Content/user.css" rel="stylesheet" type="text/css" />
 <link href="../../Style/validate_style.css" rel="stylesheet" type="text/css" />
     <script src="../../Scripts/jquery-1.7.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../ckeditor/adapters/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="../../Scripts/messages_vi.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script type="text/javascript">
 
    function initCKEditor() {
     $("#formreply").validate({
            errorElement: "span", // Định dạng cho thẻ HTML hiện thông báo lỗi
       });
        $('#Description').ckeditor(function (e) {
            delete CKEDITOR.instances[$(e).attr('name')];
        }, {
            toolbar:
            [
                ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Paste', 'PasteFromWord', '-', 'Outdent', 'Indent', '-', 'Link', '-', 'Maximize', '-', 'Source']
            ],
            skin: 'office2003'
        }
);          var htmlStr = $("#Des").html();
            CKEDITOR.instances['Description'].setData(htmlStr);
        document.getElementById("div_reply").style.display = "";
    }
    function innitCKnewmail() {
     $("#formmail").validate({
            errorElement: "span", // Định dạng cho thẻ HTML hiện thông báo lỗi
       });
        delete CKEDITOR.instances['Description2'];
        $('#Description2').ckeditor(function (e) {
            delete CKEDITOR.instances[$(e).attr('name')];
        }, {
            toolbar:
            [
                ['Bold', 'Italic', 'Underline', 'Strike', '-', 'NumberedList', 'BulletedList', '-', 'Paste', 'PasteFromWord', '-', 'Outdent', 'Indent', '-', 'Link', '-', 'Maximize', '-', 'Source']
            ],
            skin: 'office2003'
        }
);
    }
  
   </script>
<div id="content" class="pjpage">

    <div class="left_content" >
        
    </div>
    <div class="main_content">
        <div class="sidebar_left black_sb paddingTB20">
            <div class="block sb_pjtype ">
                <a id="sb_user_task" class="block sb_user ">
               
                     <%=Ajax.ActionLink("Hộp thư", "Mailinbox", new AjaxOptions { UpdateTargetId = "div_content" })%>   
                </a>
            </div>
            <div class="block sb_pjtype ">
                <a id="sb_user_bug" class="block sb_user">
                   
                   <%=Ajax.ActionLink("Thư đã gửi", "sendedmail", new AjaxOptions { UpdateTargetId = "div_content" })%> 
                </a>
            </div>
            <div class="block sb_pjtype ">
                <a id="sb_user_calendar" class="block sb_user">
                   
                      <%=Ajax.ActionLink("Soạn thư mới", "newmail", new AjaxOptions { HttpMethod = "GET", UpdateTargetId = "div_content", OnSuccess = "innitCKnewmail" })%>   
                </a>
            </div>
            
            <div class="clear"></div>
        </div>
        <div class="content_page_right nonpad">
            <div class="detail">
                <div  class="detail_top">
                    <div class="detail_title">Mail</div>
                    
                </div>
                <div id="div_content" class="detail_content">
                 <% Html.RenderAction("Mailinbox"); %>
                </div>
                <div class="detail_bot">
                </div>
        
            </div>
        </div>
    </div>
    <div class="right_content" >
    </div>
    </div>
     
</asp:Content>

